package ophiux.wechatpay.sdk.common.writer.xml;

import ophiux.wechatpay.sdk.OphiuxWeChatPaySDKException;
import ophiux.wechatpay.sdk.common.parse.IConvert;
import ophiux.wechatpay.sdk.common.parse.xml.XmlConverter;
import ophiux.wechatpay.sdk.common.writer.IOphiuxApiWriter;

/**
 * xml写入
 * @author chenh
 *
 */
public class OphiuxApiXMLWriter<T> implements IOphiuxApiWriter<T> {

	
	@Override
	public String writer(T obj) throws OphiuxWeChatPaySDKException {
		IConvert xmlConverter = new XmlConverter();
		return xmlConverter.entityToString(obj);
	}

}
